import request from '@/utils/request'
// 修改-部门详情
export const UpdateDepartment = (data) => {
  return request.put(`/company/department/${data.id}`, data)
}
// 删除-部门
export const delDepartment = (id) => {
  return request.delete(`/company/department/${id}`)
}
// 新增-部门
export const AddDepartment = (data) => {
  return request.post('/company/department', data)
}
// 获取-部门列表
export const getDepartment = () => {
  return request.get('/company/department')
}
// 获取-部门详情
export const getDepartmentDetail = (id) => {
  return request.get(`/company/department/${id}`)
}
// 获取-部门负责人列表
export const getManagerList = () => {
  return request.get('/sys/user/simple')
}
